import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    cars: [] , //JSON.parse(localStorage.getItem('cars')) || [],
    memberId: sessionStorage.getItem('setMemberId') || '',
  },
  mutations: {
    setCars(state,data){
      state.cars = data;
    },
    setMemberId(state,data){
      state.memberId = data;
    }
  },
  actions: {
  },
  modules: {
  }
})
